import request from '@/utils/request'

const docPath = {
	docList: '/doc/list',
	getDoc: '/doc/get',
	saveDoc: '/doc/save',
	modifyDoc: '/doc/modify',
	removeDoc: '/doc/remove'
}

export function docList(param){
	return request({
		url: docPath.docList,
		method: 'get',
		params: param
	})
}

export function getDoc(param){
	return request({
		url: docPath.getDoc,
		method: 'get',
		params: param
	})
}

export function saveDoc(param){
	return request({
		url: docPath.saveDoc,
		method: 'post',
		data: param
	})
}

export function modifyDoc(param){
	return request({
		url: docPath.modifyDoc,
		method: 'post',
		data: param
	})
}

export function removeDoc(param){
	return request({
		url: docPath.removeDoc,
		method: 'post',
		data: param
	})
}